package com.september.aftermarket.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import com.september.prop.Properteer;

public class RestListener implements  ServletContextListener {

	private ServletContext context = null;

	public void contextDestroyed(ServletContextEvent event) {
		this.context = null;
	}

	public void contextInitialized(ServletContextEvent event) {
		this.context = event.getServletContext();
		Properteer.getInstance();
		java.util.logging.Logger rootLogger =
				java.util.logging.LogManager.getLogManager().getLogger("");
		java.util.logging.Handler[] handlers = rootLogger.getHandlers();
		for (int i = 0; i < handlers.length; i++) {
			rootLogger.removeHandler(handlers[i]);
		}
		org.slf4j.bridge.SLF4JBridgeHandler.install();

	}



}
